package com.java3_3;

//自定义包装类
public class MyInteger{
    private int value;

    public MyInteger() {
    }

    public MyInteger(int value) {
        this.value = value;
    }

    //打印时会自动调用toString方法
    @Override
    public String toString() {
        return String.valueOf(value);
    }
}
